# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=justdecompile
pkgver=22018
pkgrel=2
pkgdesc='The decompilation engine of JustDecompile.'
url='https://github.com/telerik/JustDecompileEngine/tags'
groups=('blackarch' 'blackarch-windows' 'blackarch-decompiler'
        'blackarch-binary' 'blackarch-reversing')
license=('APACHE')
arch=('any')
source=("$pkgname-R${pkgver}SP1.zip::https://github.com/telerik/JustDecompileEngine/archive/ReleaseR${pkgver}SP1(default).zip")
sha512sums=('ff0e503a82bc5b65324e42fe480f25fdd2503e3c54881f707f655e70dea65d776772feed2aa1cda0627be26d7adc228458d6afcde233fe0285f9d6bcf258ff02')

package() {
  install -dm 755 "$pkgdir/usr/share/windows/$pkgname"

  rm "$pkgname-R${pkgver}SP1.zip"

  cp -a * "$pkgdir/usr/share/windows/$pkgname/"
}

